#!/bin/sh

url="https://api-passport.kaikeba.com/login";

if [ "$#" -ne 2 ];
then
	echo "参数错误 Ex:kkb_verify.sh 18701196448 111111";
	exit 1;
fi

mobile=$1;
verify=$2;

post_data="{
	\"mobile\": \"$mobile\",
	\"remember\": 0,
	\"verify_code\": \"$verify\"
}";

##cookie_file="./"${username}".cookie";
cookie_file="./cookie.txt";


curl -c "$cookie_file" -X POST \
  "$url" \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: 4cbc8f4f-1eec-cb89-c462-1f20ddc3b857' \
  -d "$post_data"

##echo $post_data;
